<?php
/**
 * 公用方法
 */
function show($status, $message, $data = array())
{
    $reuslt = array(
        'status' => $status,
        'message' => $message,
        'data' => $data,
    );
    exit(json_encode($reuslt));
}

/**
 * 验证码检查
 */
function check_verify($code, $id = "")
{
    $verify = new \Think\Verify();
    return $verify->check($code, $id);
}

/**
 * md5加密
 */
function getMd5Password($password)
{
    return md5($password . C('MD5_PRE'));

}

